package com.wang.xh.hot.controller;

import com.wang.xh.api.client.HotFeignClient;
import com.wang.xh.api.domain.hot.HotVo;
import com.wang.xh.common.util.R;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author wjh
 * @create 2024-09-09 19:14
 */
@Tag(name = "热门的远程调用控制层")
@RestController
@RequestMapping("/hot")
public class HotFeignController {
    
    @Resource
    private HotFeignClient hotFeignClient;
    
    @GetMapping("/getAllHot")
    public R<List<HotVo>> getAllHot() {
        return hotFeignClient.getAllHot();
    }
}
